import React from 'react'
import{ useNavigate } from 'react-router-dom'
function Wo() {
  const navigate = useNavigate()
  return (
    <div>
      <button style={{width:'100px', height:'50px',backgroundColor:'red'}}onClick={()=>navigate('/login')}>去登录</button>
    </div>
  )
}

export default Wo
